package com.atguigu.springboot;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.web.servlet.View;
import org.springframework.web.servlet.ViewResolver;

import java.util.Locale;

@SpringBootApplication
public class SpringBoot04WebRestfulcurdApplication {

	public static void main(String[] args) {
		SpringApplication.run(SpringBoot04WebRestfulcurdApplication.class, args);
	}

	@Bean
	public ViewResolver myViewReolver(){
		return  new MyViewResoler();
	}

	public  static class MyViewResoler implements ViewResolver{

        @Override
        public View resolveViewName(String s, Locale locale) throws Exception {
            return null;
        }
    }
}
